Tootsville::Endpoint-Put-/ Users/ Me→Json

Function

Endpoint-Put-/ Users/ Me→Json names a function, with lambda list NIL:

Makes changes to an user account.

Input JSO:

{ key: "field", newValue: "x" }

Fields and value formats:

displayName (fullName)
givenName
surname (familyName)
sensitive (sensitiveP)
Must be "true" or "false" (as a string)
lang (language)
Must be a supported ISO language string; e.g. "en_US"
gender
Must be one of "☿" "♀" "♂", where "☿" is gender-neutral. Selects pronouns; respectively, "they," "she," or "he."
dob (dateOfBirth)
Format in RFC-3339 timestamp format; eg, "1990-05-21T00:00:00-0400" or just "1990-05-21"

Status: 201 Created

XXX is there a better status for updates?

Status: 401 Authorization Required

Status: 403 Authorization Failed

Status: 405 Not Allowed

Status: 422

Web Service Endpoint

This is a web service endpoint accessed by the HTTP method PUT at the URI template /users/me. It returns a content-type of application/json.

There are no URI parameters.

It will report a slow response if it takes longer than 0.03 seconds (30 milliseconds) to complete.

File

Defined in file src/endpoints/slash-users.lisp.